/**
 * RequestMapping
 * @target Method
 * @author 冰凝
 * @date 2022-07-01 下午 04:28
 **/
export function RequestMapping(value: string, method: string): MethodDecorator {
    console.debug('[RequestMapping] 方法装饰器', {value, method})
    return (target, propertyKey, descriptor) => {
        console.debug('RequestMapping', {target, propertyKey, descriptor})
    }
}

export function GetMapping(value: string): MethodDecorator {
    return RequestMapping(value, 'GET')
}

export function PostMapping(value: string): MethodDecorator {
    return RequestMapping(value, 'POST')
}

export function PutMapping(value: string): MethodDecorator {
    return RequestMapping(value, 'PUT')
}

export function DeleteMapping(value: string): MethodDecorator {
    return RequestMapping(value, 'DELETE')
}
